<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>PriceZone Register</title>
<style>
#registerForm {
	width: 300px;
	margin: 0 auto;
}

#createFail {
	width: 300px;
	margin: 0 auto;
	color: #ff2200;
}
</style>
</head>
<body>
	<br>
	<br>
	<%
		String success = request.getParameter("created");
		if (success != null && success.equals("false")) {
			out.println("<div id='createFail'>Could not created new account! </div>");
		}
	%>
	<br>
	<br>
	<form name="register" id="registerForm" action="register"
		method="post" accept-charset="utf-8">
		<label for="name">Name:</label> <input type="name" name="name"
			placeholder="FirstName LastName" required> <br>
		<label for="usermail">Email:</label> <input type="email"
			name="usermail" placeholder="yourname@email.com" required> <br>
		<label for="password">Password:</label> <input type="password"
			name="password" placeholder="password" required> <input
			type="submit" value="Register new account">
	</form>
</body>
</html>